<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller {

	public function __construct()
	{
		session_start();
		parent::__construct();

		if ( !isset($_SESSION['username']) )
		{
			// echo "session expired.<br/>";
			// echo uri_string();
			// echo "<br/>";
			// echo site_url();
			// echo "<br/>";
			// echo base_url();
			redirect('webadmin', 'refresh');
		}

	}

	public function index()
	{
		// echo uri_string();
		// echo "<br/>";
		// echo site_url();
		// echo "<br/>";
		// echo base_url();
		$this->load->view('welcome');
	}
}
